<template>
    <div class="action">
        <el-button type="info"  @click="reload(1)" style=""><el-icon    style=""><refresh /></el-icon></el-button>
        
        <el-button type="primary" @click="add(1)"><el-icon><circle-plus /></el-icon>新增</el-button>
        <el-button type="danger"   @click="alldel(1)">批量删除</el-button>
        
    </div> 
</template>
<script>
export default {
  name: "ActionButton",
   props:{
		ActionButton:{
			type:Array,
			default:()=>[
                // add:true,
                // alldel:false
            ]
		}
	},
     methods:{ 
        reload(){
            location.reload()
        },
            
        add(_id){
              this.$parent.add(1);
        },
        alldel(_id){
          //  await this.$api.menuSubmit({ _id, action: "delete" });
          this.$parent.alldel(1);
            // this.$message.success("删除成功");
            
            // console.log('id',_id);
            // this.getDataList()
        }
    },
  
};	
</script>
 